package com.logos.stream;

import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import java.util.function.IntFunction;

public class test03 {

    public static void main(String[] args) {
        List<String> list = new ArrayList<>();
        Collections.addAll(list, "张无忌", "周芷若", "赵敏", "张三丰", "张翠山","张良","王二麻子","谢广坤");
        list.forEach(System.out::println);
        System.out.println(list.stream().count());
        String[] array = list.stream().toArray(value -> new String[value]);
        for (String s : array) {
            System.out.println(s);
        }
    }
}
